home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 July / macformat-026.iso / mac / Shareware City / Developers / 3D Buttons CDEF / 3D Buttons Read Me < prev   
Encoding:
Text File  |  1994-07-31  |  2.7 KB  |  63 lines  |  [TEXT/ttxt]

  1. 3D Buttons, by Zig Zichterman
  2. 1.0b4 31 July 1994
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12. 3D Buttons is a control definition (CDEF) that implements the 3D interface as suggested in develop issue 15. When drawing on a 8-bit (or breater) color device (in a color GrafPort), 3D Buttons draws in grey. 3D Buttons drops to normal 2D drawing for black and white (or less than 8 bits of color).
  13.  
  14. Read “Working in the Third Dimension” in develop issue 15. Jamie Osborne and Deanna Thomas tell all about the design and code for a three dimensional Macintosh, including 3D Buttons.
  15.  
  16. Just drop the CDEF into any application you write, under whatever id you like. Read Inside Macintosh if you need help specifying a CDEF in your controls.
  17.  
  18. I do not recommend using 3D Buttons as id 0—it overrides the system CDEF and Bad Things will probably happen. 3D Buttons certainly look goofy in Standard File dialogs.
  19.  
  20. Demo
  21. The demo application is a quick modal dialog that shows off all the features I put into 3D buttons. Yes, I go against my own advice and use 3D Buttons as CDEF id 0 in this application.
  22.  
  23. The window background is grey with red, green, and blue set to 0xDDDD. 3D Buttons assume this level grey for their background: 3D Buttons look hideous against any other color background.
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31. Icon Buttons
  32. I defined icon buttons as proc id 4. (push buttons = 0, check boxes = 1, radio buttons = 2, and now, by decree-o-Zig, icon buttons = 4). Your control rect should be 40 pixels square for large icons, 24 pixels square for small icons. All other sizes look hideous. Set the value of the control to the icon ID. Icon buttons do not draw titles.
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42. Tristate Buttons
  43. 3D Buttons also implements tristate checkboxes and radio buttons. Set the control value to 2 to tristate it.
  44.  
  45. Public Domain
  46. The 3D Buttons CDEF (source and object) is in the public domain. Use it in your apps. Don't pay a cent. Strip away any mention of Zig. There's nothing I can (or will) do. It's public domain code.
  47.  
  48. Where to Find Zig
  49. ziggr@aol.com
  50. If you find any bugs in 3D Buttons, let me know and I just might fix them. I maintain a list of 3D Button users who want to be on a mailing list to receive updates. Write and I'll add you to the list.
  51.  
  52. Change History
  53. 1.0b4—31 July 1994
  54. Save and restore pen color across draw. Draw 3D effects on 4-bit greyscale monitors.
  55. 1.0b3—28 July 1994
  56. Added offscreen GWorld support so the button titles would stop that annoying flashing. Many thanks to one of my users for pointing it out.
  57. 1.0b2—20 July 1994 (never released)
  58. Fixed a minor bug in the CDEF that would draw with a fat pensize (2,2) when it really wanted (1,1).
  59. Added a call to InitCursor() to make sure that the demo program doesn’t show a watch cursor while in the dialog.
  60. 1.0b1
  61. First public release.
  62.  
  63.